package controller

import "github.com/gin-gonic/gin"

type HealthController struct {
	BaseController
}

func NewHealthController() *HealthController {
	return &HealthController{}
}

func (c *HealthController) RegisterRouter(g *gin.RouterGroup) {
	//心跳检测
	g.Any("/healthz", c.Health)
}

func (c *HealthController) Health(ctx *gin.Context) {
	c.Success(ctx, map[string]interface{}{
		"health": "健康检测ok(正常)",
	})
}
